<?php

require("class.phpmailer.php");
include("class.pop3.php");
include("class.smtp.php");
$mail = new PHPMailer();
$from = "andi.saputra.jakarta@gmail.com"; 
$to = "andi.saputra.jakarta@gmail.com"; 
$name = $to;
$mail->From = $from;
$mail->FromName = "andi.saputra.jakarta@gmail.com"; 
$mail->AddAddress($to,$to);
$mail->Subject = "Reset Password Akun hot-l.com";
$mail->AddReplyTo($from,"andi.saputra.jakarta@gmail.com");
$mail->WordWrap = 50;                                 
$mail->IsHTML(true);                                  
$mail->Body = "<p>Anda telah mengirimkan permintaan untuk melakukan reset password akun hot-l.com pada tanggal</p>
<p>Email Anda : ".$to." </p>
<p>Password baru Anda adalah : ghjk </p>
<p>Salam,<br />
Hot-L Team. </p>";
$mail->AltBody = "This is the body when user views in plain text format"; //Text Body
if($mail->Send()){
	$reset=true;
	echo "yes";
}else {
	echo "gagal";
}